From 474bc9e5bcc2eaabf75b81e0c3282dda49760f5d Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Wed, 20 Feb 2008 17:38:19 +0000 Subject: [PATCH] x86 shadow: Minor fix to the fast emulation patch. The fast emulation path patch introduced a bug when we have an event injection during a write to a pagetable: after removing shadows we still jump to the done label, releasing the lock even if we aren't grabbing it. Signed-off-by: Gianluca Guida --- xen/arch/x86/mm/shadow/multi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/arch/x86/mm/shadow/multi.c b/xen/arch/x86/mm/shadow/multi.c index 2032023a01..5ed5c5722a 100644 --- a/xen/arch/x86/mm/shadow/multi.c +++ b/xen/arch/x86/mm/shadow/multi.c @@ -3019,7 +3019,7 @@ static int sh_page_fault(struct vcpu *v, "injection: cr2=%#lx, mfn=%#lx\n", va, mfn_x(gmfn)); sh_remove_shadows(v, gmfn, 0 /* thorough */, 1 /* must succeed */); - goto done; + return EXCRET_fault_fixed; } } -- 2.30.2